package cn.edu.xmu.oomall.customer.microservice;

import cn.edu.xmu.oomall.customer.microservice.vo.ProductRetVo;
import cn.edu.xmu.oomall.customer.microservice.vo.ProductVoInfo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "goods-service")
/**
 * @author Jiazhe Yuan
 * @date 2021-12-14 12:42:57
 * @modifiedBy Jiazhe Yuan
 * @date 2021-12-20 10:00:05
 * @modify 修改內部接口路徑
 */
public interface GoodsService {

    /**
     * 根据productId获取product对象
     * @param id product的id
     * @return 一个product
     */
    @GetMapping("/products/{id}")
    InternalReturnObject<ProductRetVo> getProductDetails(@PathVariable Long id);
}
